package com.andy.buyu.server.dto;

import com.andy.buyu.server.entity.ConfScript;

import io.netty.buffer.ByteBuf;

/**
 * 鱼类进入
 * @author cuiwm
 */
public class FishMessage extends BaseMessage{
	
    private ConfScript script;
    
    public FishMessage(ConfScript script) {
    	this.script = script;
	}

	@Override
	public void writeBody(ByteBuf buf) {
		buf.writeInt(script.getScriptId());
		buf.writeInt(script.duration());
	}


}